#include "spl.includes.h"
#include "splib.h"

using namespace SPLib;

HRESULT SPLib::Ole::CreateDataObject(FORMATETC *fmtetc, STGMEDIUM *stgmeds,
    UINT count, IDataObject **ppDataObjectOut)
{
    if(ppDataObjectOut == 0)
        return E_POINTER;

    return (*ppDataObjectOut = new DataObject(fmtetc, stgmeds, count)) ?
        S_OK : E_FAIL;
}